colorAdminApp.controller('passwordUpdateController', function($scope,$rootScope,$http,$state,$stateParams,modalService,passwordService) {
	
	    $scope.orinPassword="";
	    $scope.newPassword="";
	    $scope.confirmNewPassword="";
	    $scope.save=function(){
	    	let entity={"newPassword":$scope.newPassword,"confirmNewPassword": $scope.confirmNewPassword,"orinPassword":$scope.orinPassword};
			$http.post('api/core/access/user/updatePassword',{params:entity}).success(function(data, status, headers, config) {
			    modalService.showAlertModal('注意',data.message);
			}).error(function(data, status, headers, config) {
		    	alert(data);
	        });  
		}
	
});
